<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="./vue.js"></script>
</head>

<body>
  <div id="app">
    {{message}}
    <ul>
      <!-- 这样也可以展示 -->
      <li>{{movies[0]}}</li>
      <li v-for="item in movies">{{item}}</li>
    </ul>
  </div>
  <script src='./vue.js'></script>
  <script>
    const app = new Vue({ //vue内部是对象类型的
      el: '#app',
      data: {
        message: "Hello Vue",
        name: "Taec",
        movies: ['123', '23', 'df'] //交给管理之后v-for就被赋予了意义,可以用作循环
      }
    }) 
  </script>
</body>

</html>